//---------------------------------------------------------------------------

#ifndef carriersSFH
#define carriersSFH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "AdvToolBar.hpp"
#include "AdvToolBarStylers.hpp"
#include "AdvGroupBox.hpp"
#include "AdvListBox.hpp"
#include <Data.DB.hpp>
#include <Data.Win.ADODB.hpp>
#include "AdvEdit.hpp"
#include "AdvGlowButton.hpp"
#include "AdvGrid.hpp"
#include "AdvObj.hpp"
#include "BaseGrid.hpp"
#include <Vcl.Grids.hpp>
//---------------------------------------------------------------------------
class Tcarriers : public TAdvToolBarForm
{
__published:	// IDE-managed Components
	TAdvToolBarPager *tb1;
	TAdvToolBarOfficeStyler *advtlbrfcstylr1;
	TAdvGroupBox *grpCarriers;
	TLabel *lbl1;
	TLabel *lblCarriers;
	TLabel *lblBuses;
	TADOQuery *qryCarriers;
	TDataSource *dsCarriers;
	TAdvGlowButton *btnAddCarrier;
	TAdvGlowButton *btnChangeCarrier;
	TAdvGlowButton *btnDelCarrier;
	TAdvStringGrid *sgAutos;
	TAdvStringGrid *sgCarriers;
	TAdvEdit *edtAdd;
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall sgCarriersSelectCell(TObject *Sender, int ACol, int ARow, bool &CanSelect);
	void __fastcall btnAddCarrierClick(TObject *Sender);
	void __fastcall btnChangeCarrierClick(TObject *Sender);
	void __fastcall sgCarriersEditingDone(TObject *Sender);
	void __fastcall edtAddChange(TObject *Sender);
	void __fastcall btnDelCarrierClick(TObject *Sender);

private:	// User declarations
public:		// User declarations
	__fastcall Tcarriers(TComponent* Owner);
	int cid;
	void __fastcall GetCarriersList();
	void __fastcall GetBusesList(int ACol, int ARow);
	int __fastcall GetID(int ACol, int ARow);
};
//---------------------------------------------------------------------------
extern PACKAGE Tcarriers *carriers;
//---------------------------------------------------------------------------

#endif
